SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE dbo.DnnProduct_DeleteModuleDefinition
	@ModuleDefId int
AS

-- delete custom permissions
DELETE FROM dbo.DnnProduct_Permission
WHERE moduledefid = @ModuleDefId
	
DELETE FROM dbo.DnnProduct_ModuleDefinitions
WHERE  ModuleDefId = @ModuleDefId

GO
